package com.chwn.harulib.mvp.rx;

/**
 * Created by Myshikin on 2017/1/9.
 */

public class HttpResult<T> {
    private int code;
    private int result;

    private String errorMessage;
    private T      resdata;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public int getResult() {
        return result;
    }

    public void setResult(int result) {
        this.result = result;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    public T getResdata() {
        return resdata;
    }

    public void setResdata(T resdata) {
        this.resdata = resdata;
    }

    @Override
    public String toString() {
        return "HttpResult{" +
                "code=" + code +
                ", result=" + result +
                ", errorMessage='" + errorMessage + '\'' +
                ", resdata=" + (resdata == null ? "" : resdata.toString())+
                '}';
    }
}
